package cc.md888.app.model.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class EmailRegistrationCmd {

    @ApiModelProperty("邮箱")
    @NotEmpty(message = "邮箱不能为空")
    private String email;

    @ApiModelProperty("账号密码")
    @NotEmpty(message = "账号密码不能为空")
    private String password;

    @ApiModelProperty("确认密码")
    @NotEmpty(message = "确认密码不能为空")
    private String confirmPassword;

    @ApiModelProperty("访问令牌")
    @NotEmpty(message = "验证码令牌不能为空")
    private String token;

    @ApiModelProperty("验证码")
    @NotEmpty(message = "验证码不能为空")
    private String code;

    @ApiModelProperty("邀请码")
    private String inviteCode;
}
